package com.cys.dm.client.scheduler;

import com.cys.dm.entity.scheduler.DmScheduler;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-scheduler-provider")
@Component
public interface DmSchedulerClient {
    @PostMapping(path = "/findSchedulerById")
    public List<DmScheduler> findSchedulerById(@RequestParam Long itemId);

    @PostMapping(path = {"findSchedulerByItemId/{itemId}"})
    public List<DmScheduler> findSchedulerByItemId(@PathVariable("itemId")Long itemId);
}
